def bubbleSort(numbers): # DO NOT modify this line 
    # TODO: add your code here
    return # You can modify or delete this line

# === DO NOT modify the code below ===
def main():
    a = [ eval(x) for x in input().split() ]
    print(bubbleSort(a))
    print(" ".join(map(str,a)))
    
if __name__ == '__main__':
    main()